﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="VerificarNit.aspx.cs" Inherits="Admin_VerificarNit" ResponseEncoding ="iso-8859-1"%>

<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxLoadingPanel" TagPrefix="dx" %>

<%@ Register assembly="DevExpress.Web.v10.2, Version=10.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxCallbackPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v10.2, Version=10.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v10.2, Version=10.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxCallback" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v10.2, Version=10.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <script language="javascript">
    function confirmEditAspx() {
        var counter = ASPxGridViewListadoProyectos.GetSelectedRowCount();

        if (counter > 1) {
            counter = 0;
            alert("Debe seleccionar un solo registro");
            return (false);
        }
        else if (counter == 1) {
            counter = 0;
            return (true);
        }
        else if (counter == 0) {
            counter = 0;
            alert("Debe seleccionar al  menos un registro");
            return (false);
        }
    }
				
    </script>
<div class="content_main login_ap">
    <table style="width: 100%;">
    <tr>
    <td colspan="2">

        <dx:ASPxLoadingPanel ID="LoadingPanel" runat="server" ClientInstanceName="LoadingPanel"
                                                        ClientIDMode="AutoID" Modal="True" Text="Cargando&amp;hellip;">
                                                    </dx:ASPxLoadingPanel>
        <dx:ASPxCallback ID="ASPxCallback1" runat="server" ClientIDMode="AutoID" 
            ClientInstanceName="Callback">
            <ClientSideEvents CallbackComplete="function(s, e) { LoadingPanel.Hide(); }" />
        </dx:ASPxCallback>

    </td>
    </tr>
        <tr>
            <td>
                
                &nbsp;<table style="width:100%;">
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>

        <asp:Label ID="lblMensaje0" runat="server" CssClass="title_sect">Seleccione el registro y haga clik en el boton Modificar Proyecto</asp:Label>
        
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            <table style="width:100%;">
                                <tr>
                                    <td>
                                                    <asp:Button ID="btnNuevo" runat="server" CssClass="btn_newproyect" onclick="btnNuevo_Click" 
                                                        Text="Nuevo Proyecto" />
                                                    <asp:Button ID="btnModificar" runat="server" CssClass="btn_editproyect" onclick="btnModificar_Click" 
                                                        Text="Modificar Proyecto" OnClientClick="return confirmEditAspx();" />

                                    </td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>

                            &nbsp;</td>
                        <td>
                            <dx1:ASPxGridView ID="ASPxGridViewListadoProyectos" runat="server" 
                                AutoGenerateColumns="False" ClientIDMode="AutoID" KeyFieldName="PRO_ID" 
                                CssFilePath="~/App_Themes/SoftOrange/{0}/styles.css" CssPostfix="SoftOrange" 
                                Width="100%" ClientInstanceName="ASPxGridViewListadoProyectos">
                                <Columns>
                                    <dx1:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0" 
                                        Caption="Seleccione" Width="40px">
                                        <ClearFilterButton Visible="True">
                                        </ClearFilterButton>
                                    </dx1:GridViewCommandColumn>
                                    <dx1:GridViewDataTextColumn FieldName="PRO_ID" ToolTip="ID" VisibleIndex="0" 
                                        Caption="ID" Width="1px">
                                    </dx1:GridViewDataTextColumn>
                                    <dx1:GridViewDataTextColumn Caption="Número de Radicación" 
                                        FieldName="PRO_NUMERO_RADICACION" VisibleIndex="2">
                                    </dx1:GridViewDataTextColumn>
                                    <dx1:GridViewDataTextColumn Caption="Nombre" VisibleIndex="1" 
                                        FieldName="PRO_NOMBRE">
                                    </dx1:GridViewDataTextColumn>
                                    <dx1:GridViewDataTextColumn Caption="NIT" 
                                        VisibleIndex="1" FieldName="PRO_NIT">
                                    </dx1:GridViewDataTextColumn>
                                    <dx1:GridViewDataTextColumn Caption="Usuario" 
                                        FieldName="PRO_CORREO_ELECTRONICO_REPRESENTANTE_LEGAL" VisibleIndex="3">
                                    </dx1:GridViewDataTextColumn>
                                    <dx1:GridViewDataTextColumn Caption="Estado" FieldName="PRO_ESTADO" 
                                        VisibleIndex="4">
                                    </dx1:GridViewDataTextColumn>
                                </Columns>
                                <Settings ShowFilterRow="True" ShowGroupPanel="True" />
                                <SettingsText GroupPanel="Arrastre el encabezado de la columna aquí para agrupar" />
                                <SettingsLoadingPanel ImagePosition="Top" />
                                <Paddings Padding="1px" />
                                <Images SpriteCssFilePath="~/App_Themes/SoftOrange/{0}/sprite.css">
                                    <LoadingPanelOnStatusBar Url="~/App_Themes/SoftOrange/GridView/gvLoadingOnStatusBar.gif">
                                    </LoadingPanelOnStatusBar>
                                    <LoadingPanel Url="~/App_Themes/SoftOrange/GridView/Loading.gif">
                                    </LoadingPanel>
                                </Images>
                                <ImagesFilterControl>
                                    <LoadingPanel Url="~/App_Themes/SoftOrange/Editors/Loading.gif">
                                    </LoadingPanel>
                                </ImagesFilterControl>
                                <Styles CssFilePath="~/App_Themes/SoftOrange/{0}/styles.css" 
                                    CssPostfix="SoftOrange" GroupButtonWidth="28">
                                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                    </Header>
                                    <LoadingPanel ImageSpacing="8px">
                                    </LoadingPanel>
                                </Styles>
                                <StylesEditors>
                                    <CalendarHeader Spacing="1px">
                                    </CalendarHeader>
                                    <ProgressBar Height="29px">
                                    </ProgressBar>
                                </StylesEditors>
                            </dx1:ASPxGridView>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>

            </td>
            <td>
                &nbsp;
            </td>
   
        </tr>
   
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
   
        </tr>
   
    </table>   
    <div class="content_top"></div>
    <div class="content_botton"></div>
</div> 
</asp:Content>

